package org.iks.store.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.iks.common.pojo.message.ChatMessage;
import org.iks.store.business.entity.SessionMessageEntity;
import org.iks.store.business.vo.MessageQueryVo;
import org.iks.store.business.vo.message.MessageAnchorQueryVo;

import java.util.List;

/**
 * Author kzou
 * Date 2024/2/14
 * Description:
 */
@Mapper
public interface SessionMessageMapper extends BaseMapper<SessionMessageEntity> {

    ChatMessage queryLatestMessage(Integer sessionId);

    List<ChatMessage> querySessionMessage(MessageQueryVo queryVo);

    ChatMessage queryMessageById(Integer messageId);

    List<ChatMessage> querySessionMessageByAnchor(MessageAnchorQueryVo queryVo);
}
